package com.ttxs.common.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties("ttxs.security.token")
public class TokenProperties {
    private String name = "token";
    private String refreshName = "refreshToken";
    private String loginKeyPrefix = "ttxs:loginUser:";
    // token过期时间，默认15分钟
    private int expire = 15;
    // refresh token过期时间，默认1440分钟
    private int refreshExpire = 24 * 60;
}
